#include <stdio.h>
#include <math.h>
int main(int argc, char *argv[]) 
{
	double a,b,c,x,x1,x2,q,q1;
	scanf("%lf%lf%lf",&a,&b,&c);
	q=sqrt(b*b-4*a*c);
	if(a==0&&b==0)printf("Input error!\n");
	else if(a==0){
		x=c/(-b);
		if(x==0){
			printf("x=0.000000\n");
		}
		else printf("x=%.6lf\n",x);
	}
	else if(q==0){
		x1=x2=b/(-2*a);
		if(x1==0){
			printf("x1=x2=0.000000\n");
		}
		else printf("x1=x2=%.6lf\n",x1);
	}
	else if(q>0){
		x1=(-b+q)/(2*a);
		x2=(-b-q)/(2*a);
		printf("x1=%.6lf\n",x1);
		printf("x2=%.6lf\n",x2);
	}
	else if(b*b-4*a*c<0){
		q1=sqrt(4*a*c-b*b)/(2*a);
		x=-b/(2*a);
		if(x==0){
			printf("x1=%.6lfi\n",q1);
			printf("x2=-%.6lfi\n",q1);
		}
		else{
			printf("x1=%.6lf+%.6lfi\n",x,q1);
			printf("x2=%.6lf-%.6lfi\n",x,q1);
		}
	}
}